package org.myspring.test.serivce.impl;

import lombok.extern.slf4j.Slf4j;
import org.myspring.annotation.Autowired;
import org.myspring.annotation.Component;
import org.myspring.annotation.Scope;
import org.myspring.test.serivce.OrderService;
import org.myspring.test.serivce.UserService;

@Component("orderService")
@Scope
@Slf4j
public class OrderServiceImpl implements OrderService {

    @Autowired
    private UserService userService;

    @Override
    public String selectOrder() {
        log.info("查询订单信息");
        return "orderNum:000";
    }

    @Override
    public void userTest() {
        log.info("执行userTest方法");
        userService.test();
    }

}
